LogOnServerEx Method (Application Object)

The LogOnServer method logs on to an SQL server or other data sources such as ODBC. Using LogOnServerEx, you can pass server type or connection information. Once logged on using this method, you will remain logged on until you call LogOffServer Method (Application Object), or until the Application Object, is destroyed and craxdrt.dll is unloaded. This method is only valid if you have purchased Crystal Reports 6.0 or later.

Syntax
Sub LogOnServerEx (pDllName As String, pServerName As String,
    [pDatabaseName], [pUserID], [pPassword],
    [pServerType], [pConnectionString])
Parameters

Parameter Description

pDLLName

Specifies the name of the DLL for the server or password protected non-SQL table you want to log on to, for example "PDSODBC.DLL". Note that the dllName must be enclosed in quotes. DLL names have the following naming convention: PDB*.DLL for standard (non-SQL) databases, PDS*.DLL for SQL/ODBC databases.

pServerName

Specifies the log on name for the server used to create the report. (For ODBC, use the data source name.) This value is case-sensitive. See Remarks below.

[pDatabaseName]

Specifies the name for the database used to create the report. See Remarks below.

[pUserID]

Specifies the User ID number necessary to log on to the server. See Remarks below.

[pPassword]

Specifies the password necessary to log on to the server.

[pServerType]

Specifies the database Server Type.

[pConnectionString]

Specifies the connection string.



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com